<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="sass/css/common.css">
    <link rel="stylesheet" href="sass/css/sousuo.css">
    <link rel="stylesheet" href="font/iconfont.css">
    <script>
        window.onload = function () {
            /*720代表设计师给的设计稿的宽度，你的设计稿是多少，就写多少;100代表换算比例，这里写100是
                              为了以后好算,比如，你测量的一个宽度是100px,就可以写为1rem,以及1px=0.01rem等等*/
            getRem(375, 100)
        };
        window.onresize = function () {
            getRem(375, 100)
        };
        function getRem(pwidth, prem) {
            var html = document.getElementsByTagName("html")[0];
            var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
            html.style.fontSize = oWidth / pwidth * prem + "px";
        }
    </script>
</head>

<body>

    <header>
        <input type="text" class="ipt " placeholder="搜索您感兴趣的内容" />
        <span class="iconfont icon-icon-test2
        "></span>
        <em>取消</em>
    </header>
    <article>
        <h2>热门搜索</h2>
        <ul>
        <li><a>阳台</a></li>
        <li><a>中岛</a></li>
        <li><a>洗衣机</a></li>
        <li class="sp"><a>灯</a></li>
        <li class="sp"><a>小户型</a></li>
        <li><a>北欧</a></li>
        <li class="sp"><a>寻找有温度的家</a></li>
        <li><a>餐桌</a></li>
        <li><a>厨房</a></li>
    </ul>
    </article>
    <article>
     
        <h2>历史搜索
            <span class="iconfont icon-delete"><a>清空</a></span>
        </h2>
        <ul>
        <li><a>厨房</a></li>
        <li><a>灯</a></li>
    </ul>
    </article>
</body>

</html>